package org.linlinjava.litemall.db.domain;

import org.linlinjava.litemall.db.domain.Commodity;

import java.util.Date;

public class SaleHistory {
    private Integer id;

    private Integer saleNum;

    private Date saleTime;

    private Commodity commodity;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Date getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    @Override
    public String toString() {
        return "SaleHistory{" +
                "id=" + id +
                ", saleNum=" + saleNum +
                ", saleTime=" + saleTime +
                ", commodity=" + commodity +
                '}';
    }
}
